package com.heima.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dtos.LoginDto;
import com.heima.model.user.pojos.ApUser;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * USER业务层
 */
public interface IApUserService extends IService<ApUser> {

    /**
     * 登录请求
     * @param dto
     * @return
     */
    public ResponseResult login( LoginDto dto);

    /**
     * 根据用户id获取用户信息实体
     * @param id
     * @return
     */
    public ApUser findById( Integer id);
}
